package linkFinder.js;

public class FunctionParameter extends FunctionInstance{

	protected Integer orderNum;
	
	public FunctionParameter(Integer orderNum, String name, String scope){
		super(name,scope);
		this.orderNum = orderNum;
	}
	
	public Integer getOrderNum(){
		return this.orderNum;
	}
	
	public void setOrderNum(Integer orderNum){
		this.orderNum = orderNum;
	}
	
	public boolean equals(Object obj){
		if(obj instanceof FunctionParameter){
			FunctionParameter fi = (FunctionParameter)obj;
			return this.name.equals(fi.getVariableName()) && this.scope.equals(fi.getScope()) && this.orderNum.equals(fi.getOrderNum());
		}
		return false;
	}
}
